import request from '@/utils/request'
// 通知列表
export function noticeList(query) {
  return request({
    url: '/notification/list',
    method: 'get',
    params: query
  })
}
//标记已读
export function updateStatus(id) {
  return request({
    url: '/notification/updateStatus/'+id,
    method: 'put'
  })
}
// 删除
export function noticeDel(id) {
  return request({
    url: '/notification/'+id,
    method: 'delete',
  })
}
// 详情
export function noticeDetail(id) {
  return request({
    url: '/notification/'+id,
    method: 'get'
  })
}